<!--
 * @Author: your name
 * @Date: 2021-04-02 10:04:44
 * @LastEditTime: 2021-04-02 14:26:30
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \active-front\src\components\Personal\index.vue
-->

<template>
  <el-row class="tac">
    <el-col :span="3">
      <!-- <h5>默认颜色</h5> -->
      <el-menu
        class="el-menu-vertical-demo"
        @open="handleOpen"
        @close="handleClose"
        @select="handleSelect"
      >
        <el-menu-item index="/info/personal/information">
          <i class="el-icon-menu"></i>
          <span slot="title">个人信息</span>
        </el-menu-item>

        <el-menu-item index="/info/personal/privacy">
          <i class="el-icon-document"></i>
          <span slot="title">隐私修改</span>
        </el-menu-item>

        <el-menu-item index="/info/personal/textpage">
          <i class="el-icon-setting"></i>
          <span slot="title">历史活动</span>
        </el-menu-item>
      </el-menu>
    </el-col>
    <el-col :span="21" style="padding-left: 20px">
      <router-view />
    </el-col>
  </el-row>
</template>

<script>
import { mapState } from "vuex";
export default {
  computed: {
    ...mapState(["navmenuIndex"]),
  },
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
    handleSelect(key, keyPath) {
      this.$router.push(key);
    },
  },
};
</script>

<style scoped>
.el-menu {
  border-right: 0;
}
</style>
